#ifndef LINE_DETECTION_HPP
#define LINE_DETECTION_HPP

#include <opencv2/opencv.hpp>
#include <vector>

std::vector<cv::Point2f> sampleLinePoints(const cv::Point2f& p1, const cv::Point2f& p2, int n);

// 多轮 RANSAC 提取有效直线点
std::vector<cv::Point2f> extractMultiStraightLinePoints(const std::vector<cv::Point2f>& points, float distanceThreshold = 0.01f, int minPointsPerLine = 50);

#endif // LINE_DETECTION_HPP